package client;

/**
 * Used to start the Client
 * @author Andreas Mair
 *
 */
public class ClientMain 
{
	/**
	 * @param args
	 */
	public static void main(String[] args) 
	{
		if(args.length!=3)
		{
			System.out.println ("Usage:"); 
		    System.out.println ("java Client <host> <tcpPort> <udpPort>"); 
		}
		else
		{
			try
			{
				Client client=new Client(args[0],args[1],args[2]);
				client.start();
			}
			catch(NumberFormatException nfx)
			{
				System.out.println("tcpPort and udpPort have to be numeric!");
			}
		}
	}
}
